package app.action;

import java.io.Serializable;
import java.util.Vector;

public class MessageHandle implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3130083318849904904L;

	public enum Message_Type
	{
		PRIVATE, GENERAL, SYSTEM
	};
	
	private User owner;
	private Vector<Integer> targetIDs = new Vector<>();
	private String content;
	private Vector<Object> contentObjs = new Vector<>();
	private Message_Type type = Message_Type.GENERAL;

	public MessageHandle(User owner, String content, Vector<Object> contentObjs, Message_Type type, Vector<Integer> targetIDs) {
		this.owner = owner;
		this.content = content;
		this.contentObjs = contentObjs;
		this.type = type;
		this.targetIDs = targetIDs;
	}

	public MessageHandle(User owner, String string, Vector<Object> contentObjs) {
		this(owner, string, contentObjs, Message_Type.SYSTEM, null);
	}

	public Vector<Integer> getTargetIDs() {
		return targetIDs;
	}

	public String getContent() {
		return content;
	}

	public Vector<Object> getContentObjs() {
		return contentObjs;
	}

	public Message_Type getType() {
		return type;
	}

	public User getOwner() {
		return owner;
	}

}
